package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MedicalReportsListMapper;
import com.ruoyi.system.domain.MedicalReportsList;
import com.ruoyi.system.service.IMedicalReportsListService;

/**
 * 体检报告列表Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-15
 */
@Service
public class MedicalReportsListServiceImpl implements IMedicalReportsListService 
{
    @Autowired
    private MedicalReportsListMapper medicalReportsListMapper;

    /**
     * 查询体检报告列表
     * 
     * @param id 体检报告列表主键
     * @return 体检报告列表
     */
    @Override
    public MedicalReportsList selectMedicalReportsListById(Integer id)
    {
        return medicalReportsListMapper.selectMedicalReportsListById(id);
    }

    /**
     * 查询体检报告列表列表
     * 
     * @param medicalReportsList 体检报告列表
     * @return 体检报告列表
     */
    @Override
    public List<MedicalReportsList> selectMedicalReportsListList(MedicalReportsList medicalReportsList)
    {
        return medicalReportsListMapper.selectMedicalReportsListList(medicalReportsList);
    }

    /**
     * 新增体检报告列表
     * 
     * @param medicalReportsList 体检报告列表
     * @return 结果
     */
    @Override
    public int insertMedicalReportsList(MedicalReportsList medicalReportsList)
    {
        return medicalReportsListMapper.insertMedicalReportsList(medicalReportsList);
    }

    /**
     * 修改体检报告列表
     * 
     * @param medicalReportsList 体检报告列表
     * @return 结果
     */
    @Override
    public int updateMedicalReportsList(MedicalReportsList medicalReportsList)
    {
        return medicalReportsListMapper.updateMedicalReportsList(medicalReportsList);
    }

    /**
     * 批量删除体检报告列表
     * 
     * @param ids 需要删除的体检报告列表主键
     * @return 结果
     */
    @Override
    public int deleteMedicalReportsListByIds(Integer[] ids)
    {
        return medicalReportsListMapper.deleteMedicalReportsListByIds(ids);
    }

    /**
     * 删除体检报告列表信息
     * 
     * @param id 体检报告列表主键
     * @return 结果
     */
    @Override
    public int deleteMedicalReportsListById(Integer id)
    {
        return medicalReportsListMapper.deleteMedicalReportsListById(id);
    }
}
